home *** CD-ROM | disk | FTP | other *** search
/ In Your Face Too! / in_your_face_cd.iso / mac / Stuff to View / End of Days CD ROM / Phase3 / home.bak < prev    next >
Text File  |  1999-09-15  |  4KB  |  101 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2.  
  3. <html>
  4. <head>
  5.     <title>E n d of D a y s</title>
  6. <script language="JavaScript" src="dynlayer.js"></script>
  7. <script language="JavaScript">
  8. <!--
  9.  
  10. function init() {
  11.     dragObject = new DynLayer("star")
  12.     dragObject.dragActive = false
  13.         
  14.     document.onmousedown = mouseDown
  15.     document.onmousemove = mouseMove
  16.     document.onmouseup = mouseUp
  17.     if (is.ns) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP)
  18. }
  19.  
  20. function mouseDown(e) {
  21.     if ((is.ns && e.which!=1) || (is.ie && event.button!=1)) return true
  22.     var x = (is.ns)? e.pageX : event.x+document.body.scrollLeft
  23.     var y = (is.ns)? e.pageY : event.y+document.body.scrollTop
  24.     if (x>=dragObject.x && x<=dragObject.x+dragObject.w && y>=dragObject.y && y<=dragObject.y+dragObject.h) {
  25.         dragObject.dragOffsetX = x-dragObject.x
  26.         dragObject.dragOffsetY = y-dragObject.y
  27.         dragObject.dragActive = true
  28.         return false
  29.     }
  30.     else return true
  31. }
  32.  
  33. function mouseMove(e) {
  34.     var x = (is.ns)? e.pageX : event.x+document.body.scrollLeft
  35.     var y = (is.ns)? e.pageY : event.y+document.body.scrollTop
  36.     if (dragObject.dragActive) {
  37.         audire_dist=Math.round(Math.sqrt(Math.pow(84-(x-dragObject.dragOffsetX),2)+Math.pow(187-(y-dragObject.dragOffsetY),2)))
  38.         tabulae_dist=Math.round(Math.sqrt(Math.pow(234-(x-dragObject.dragOffsetX),2)+Math.pow(162-(y-dragObject.dragOffsetY),2)))
  39.         linea_dist=Math.round(Math.sqrt(Math.pow(364-(x-dragObject.dragOffsetX),2)+Math.pow(230-(y-dragObject.dragOffsetY),2)))
  40.         videre_dist=Math.round(Math.sqrt(Math.pow(431-(x-dragObject.dragOffsetX),2)+Math.pow(317-(y-dragObject.dragOffsetY),2)))
  41.         
  42.         if(Math.round(audire_dist)<45)
  43.             dragObject.moveTo(38,131)
  44.         else if(Math.round(tabulae_dist)<60 && y < 197)
  45.             dragObject.moveTo(168,107)
  46.         else if(Math.round(linea_dist)<95 && y < 280)
  47.             dragObject.moveTo(300,190)
  48.         else if(Math.round(videre_dist)>5 && y < 350 && x < 500 && x > 339 && y > 228)
  49.             dragObject.moveTo(370,270)
  50.         else
  51.         dragObject.moveTo(x-dragObject.dragOffsetX,y-dragObject.dragOffsetY)
  52.         return false
  53.     }
  54.     else return true
  55. }
  56.  
  57. function mouseUp(e) {
  58.     var x = (is.ns)? e.pageX : event.x+document.body.scrollLeft
  59.     var y = (is.ns)? e.pageY : event.y+document.body.scrollTop
  60.     dragObject.dragActive = false
  61.     return true
  62. }
  63.  
  64. //-->
  65. </script>
  66. </head>
  67.  
  68. <body bgcolor="#000000" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 onLoad="init();">
  69.  
  70. <div id="bknd" style="position:absolute; left:0; top:0; width:600; z-index:10; visibility:visible;">
  71. <img src="home.jpg" width=745 height=600 alt="" border="0">
  72. </div>
  73.  
  74. <div ID="star" style="position:absolute; left:527; top:237;  z-index:10; visibility:visible;">
  75. <img src="star.gif" width=111 height=92 alt="" border="0">
  76. </div>
  77.  
  78. <div ID="lnkone" style="position:absolute; left:38; top:167;  z-index:10; visibility:visible;">
  79. <a href="#" onMouseOver="document.images['audire'].src='audio.gif';" onMouseOut="document.images['audire'].src='audire.gif';"><img name="audire" src="audire.gif" width=95 height=31 alt="" border="0"></a>
  80. </div>
  81.  
  82. <div ID="lnktwo" style="position:absolute; left:176; top:143;  z-index:10; visibility:visible;">
  83. <a href="#" onMouseOver="document.images['tabulae'].src='graphic.gif';" onMouseOut="document.images['tabulae'].src='tabulae.gif';"><img name="tabulae" src="tabulae.gif" width=112 height=31 alt="" border="0"></a>
  84. </div>
  85.  
  86. <div ID="lnkthree" style="position:absolute; left:303; top:198;  z-index:10; visibility:visible;">
  87. <a href="#" onMouseOver="document.images['linea'].src='timeline.gif';" onMouseOut="document.images['linea'].src='lineatemporis.gif';"><img name="linea" src="lineatemporis.gif" width=129 height=64 alt="" border="0"></a>
  88. </div>
  89.  
  90. <div ID="lnkfour" style="position:absolute; left:382; top:298;  z-index:10; visibility:visible;">
  91. <a href="#" onMouseOver="document.images['videre'].src='video.gif';" onMouseOut="document.images['videre'].src='videre.gif';"><img name="videre" src="videre.gif" width=93 height=30 alt="" border="0"></a>
  92. </div>
  93.  
  94. <div ID="lnkfive" style="position:absolute; left:374; top:380;  z-index:10; visibility:visible;">
  95. <a href="#" onMouseOver="document.images['legere'].src='text.gif';" onMouseOut="document.images['legere'].src='legere.gif';"><img name="legere" src="legere.gif" width=93 height=35 alt="" border="0"></a>
  96. </div>
  97.  
  98.  
  99. </body>
  100. </html>
  101.